home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 April
/
CMCD0404.ISO
/
Software
/
Shareware
/
Programare
/
sharp
/
wwwSharp_setup.exe
/
{app}
/
Examples
/
HTA Properties
/
HtaProperties.wsits
(
.txt
)
< prev
next >
Wrap
Windows Compiled HTML Help File
|
2004-01-25
|
10KB
|
69 lines
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>HTA Demo</TITLE>
<HTA:APPLICATION ID="oHTA"
APPLICATIONNAME="myApp"
BORDER="thick"
BORDERSTYLE="normal"
CAPTION="yes"
ICON="graphics/face01.ico"
MAXIMIZEBUTTON="yes"
MINIMIZEBUTTON="yes"
SHOWINTASKBAR="no"
SINGLEINSTANCE="no"
SYSMENU="yes"
VERSION="1.0"
WINDOWSTATE="normal"
></HTA:APPLICATION>
<SCRIPT>
/* This function also gets the value of commandLine,
which cannot be set as an attribute */
function fnShowProp()
{
sTempStr = "applicationName = " + oHTA.applicationName + "\n" +
"border = " + oHTA.border + "\n" +
"borderStyle = " + oHTA.borderStyle + "\n" +
"caption = " + oHTA.caption + "\n" +
"commandLine = " + oHTA.commandLine + "\n" +
"icon = " + oHTA.icon + "\n" +
"maximizeButton = " + oHTA.maximizeButton + "\n" +
"minimizeButton = " + oHTA.minimizeButton + "\n" +
"showInTaskBar = " + oHTA.showInTaskBar + "\n" +
"singleInstance = " + oHTA.singleInstance + "\n" +
"sysMenu = " + oHTA.sysMenu + "\n" +
"version = " + oHTA.version + "\n" +
"windowState = " + oHTA.windowState + "\n" ;
oPre.innerText = sTempStr;
}
</SCRIPT>
</HEAD>
<BODY">
<P>The attribute values for this HTA are listed below. Click the button to get the corresponding property values.</P>
<PRE CLASS="clsCode"><HTA:APPLICATION ID="oHTA"
APPLICATIONNAME="myApp"
BORDER="thin"
BORDERSTYLE="normal"
CAPTION="yes"
ICON="graphics/face01.ico"
MAXIMIZEBUTTON="yes"
MINIMIZEBUTTON="yes"
SHOWINTASKBAR="no"
SINGLEINSTANCE="no"
SYSMENU="yes"
VERSION="1.0"
WINDOWSTATE="maximize"
>
</PRE>
<BUTTON onclick="fnShowProp()">Retrieve HTA Property Values</BUTTON>
<PRE ID="oPre">
</PRE>
<HR>
<BUTTON onclick="window.close()">Quit Application</BUTTON>
</BODY>
</HTML>